const mutations = {
    //定义修改状态的方法，是唯一的
    changeIsLogin(state, data) {
        state.isLogin = data
    },
    changeIndexListDatas(state, data) {
        state.indexListDatas = state.indexListDatas.concat(data)
    },
    changeIsLoading(state, data) {
        state.isLoading = data
    },
    changeCategoryLeftDatas(state, data) {
        state.categoryLeftDatas = data
    },
    changeCategoryRightDatas(state, data) {
        state.categoryRightDatas = data
    },
    changeCategoryListDatas(state, data) {
        state.categoryListDatas = state.categoryListDatas.concat(data)
    },
    changeBrandListDatas(state, data) {
        state.brandListDatas = data
    }
}

export default mutations